package com.pethome.web.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.pethome.common.annotation.Excel;
import com.pethome.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 回访信息对象 t_visit
 * 
 * @author hjc
 * @date 2024-08-26
 */
public class Visit extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    @Excel(name = "id")
    private Long visitId;

    /** 回访对象id */
    @Excel(name = "回访对象id")
    private Long visitAdoptId;

    /** 记录图片（宠物的图片或者宠物和领养人的 图片） */
    @Excel(name = "记录图片", readConverterExp = "宠=物的图片或者宠物和领养人的,图=片")
    private String visitImages;

    /** 文字记录 */
    @Excel(name = "文字记录")
    private String visitText;

    /** 回访结果（0-继续领养，1-驳回领养） */
    @Excel(name = "回访结果", readConverterExp = "0=-继续领养，1-驳回领养")
    private Long visitResult;

    /** 回访时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "回访时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date visitTime;

    public void setVisitId(Long visitId) 
    {
        this.visitId = visitId;
    }

    public Long getVisitId() 
    {
        return visitId;
    }
    public void setVisitAdoptId(Long visitAdoptId) 
    {
        this.visitAdoptId = visitAdoptId;
    }

    public Long getVisitAdoptId() 
    {
        return visitAdoptId;
    }
    public void setVisitImages(String visitImages) 
    {
        this.visitImages = visitImages;
    }

    public String getVisitImages() 
    {
        return visitImages;
    }
    public void setVisitText(String visitText) 
    {
        this.visitText = visitText;
    }

    public String getVisitText() 
    {
        return visitText;
    }
    public void setVisitResult(Long visitResult) 
    {
        this.visitResult = visitResult;
    }

    public Long getVisitResult() 
    {
        return visitResult;
    }
    public void setVisitTime(Date visitTime) 
    {
        this.visitTime = visitTime;
    }

    public Date getVisitTime() 
    {
        return visitTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("visitId", getVisitId())
            .append("visitAdoptId", getVisitAdoptId())
            .append("visitImages", getVisitImages())
            .append("visitText", getVisitText())
            .append("visitResult", getVisitResult())
            .append("visitTime", getVisitTime())
            .toString();
    }
}
